Bug in palet-size calculation fixed
authorArjan van de Ven <arjan@fenrus.demon.nl>
Sun, 5 Dec 1999 13:47:26 +0000 (13:47 +0000)
committerArjan van de Ven <arjan@src.gnome.org>
Sun, 5 Dec 1999 13:47:26 +0000 (13:47 +0000)
1999-12-05  Arjan van de Ven
     <arjan@fenrus.demon.nl>

* gdk-pixbuf/io-ico.c: Bug in palet-size
   calculation fixed

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-ico.c

index a6adbec11b5af49f2eef1c48c9a400679928d470..633bef30055ea98949084c2079105776a2e80a99 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-05  Arjan van de Ven <arjan@fenrus.demon.nl>
+       
+       * gdk-pixbuf/io-ico.c: Bug in palet-size 
+       calculation fixed
+
 1999-12-04  Arjan van de Ven <arjan@fenrus.demon.nl>
 
        * gdk-pixbuf/io-bmp.c: Major cleanup, added support for
index b7719a795f1fb555c66ef63945767635216d8c0c..5990c8f19c3b2581bc527f8818cd036c83ce8af7 100644 (file)
@@ -283,7 +283,8 @@ static void DecodeHeader(guchar *Data, gint Bytes,
        /* Determine the  palette size. If the header indicates 0, it
           is actually the maximum for the bpp. You have to love the
           guys who made the spec. */
-       I =(int)(BIH[35] << 24) + (BIH[34] << 16) + (BIH[33] << 8) + (BIH[32]);
+       I = (int)(BIH[35] << 24) + (BIH[34] << 16) + (BIH[33] << 8) + (BIH[32]);
+       I = I*4;
        if ((I==0)&&(State->Type==1))
                I = 2*4;
        if ((I==0)&&(State->Type==4))